from math import sqrt


class mymath:
    @staticmethod
    def add(x, y):
        return x+y

    @staticmethod
    def reduction(x, y):
        return x-y

    @staticmethod
    def take(x, y):
        return x*y

    @staticmethod
    def division(x, y):
        if y==0:
            return print('除数不能为0')
        else:
            return x/y

    @staticmethod
    def power(x, y):
        return x**y

    @staticmethod
    def prescrib(x):
        return sqrt(x)

print(mymath.add(1, 2))
print(mymath.power(3, 4))
print(mymath.take(2, 4))


#自由发挥
class wash:
    wash_machine = '海尔'
    __wash_machine_color = '白色'

    def __init__(self):
        self.power = '2000p'
        self.__power_supply = '220v'

    @classmethod
    def get__wash_machine_color(cls):
        return cls.__wash_machine_color

    def __str__(self):
        return f'洗衣机品牌是：{wash.wash_machine}'

    def one(self):
        c=[]
        a=input('这件衣服是否干净')
        if a == '干净':
            pass
        else:
            c.append(a)
        print('找好要洗的衣服')
        return len(c)

    def two(self):
        print('把衣服放入洗衣机')

    def three(self):
        print('倒入洗衣粉')

    def four(self):
        print('接入电源，点击开始')

print(wash.get__wash_machine_color())
c = wash()
print(c)
print(c.power)



